package cn.tedu.spring.example;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Testuser {
    public static void main(String[] args) {
        /*
        1 创建JAVA对象
        2 获取JAVA对象
        3 调用JAVA对象的方法测试

         */
        ApplicationContext conext=new AnnotationConfigApplicationContext
                ("cn.tedu.spring.example");
        user bean = conext.getBean(user.class);
        bean.run();
    }
}
